package membermodel

import (
	"com.cyt.common/model"
)

type BaseMember struct {
	Username string `v:"required#请填写用户名"` //会员名称
}

type ApiLoginReq struct {
	Username string `v:"required#请填写用户名"`
	Password string `v:"required#请填写密码"`
}

type MemberCreateReq struct {
	BaseMember
	Password string `v:"required#请填写密码"`
	Mobile   string `v:"required|phone#请填写手机号|手机格式不正确"` // 手机号码
}

type MemberUpdateReq struct {
	model.GetById
	NickName string `v:"required#请填写昵称"`
}

type MemberListReq struct {
	Id       uint
	Username string
	model.PageInfo
}